package com.movitech.mobile.cz.base.modules.config;

/**
 * 审批历程功能模块枚举
 * @author Jack.Gong
 * @since 2018-03-08
 *
 */
public enum HistoryCommentModelTypeEnum {
	
	AUDIT_PROCESS_SUPPLIERS_INFO("供方信息审核历程", 1),
	TEAM_MEMBERS_OPINIONS_SITE_INSPECTION("供方现场考察组员意见", 2),
	HistoryCommentModelType3("供方评估审核", 3),
	HistoryCommentModelType4("供方评分定级", 4),
	HistoryCommentModelType5("战略采购年度总规划", 5),
	HistoryCommentModelType6("专项采购计划确认", 6),
	HistoryCommentModelType7("采购方案审批历史", 7),
	HistoryCommentModelType8("招标文件审批历史", 8),
	HistoryCommentModelType9("商务谈判审批历史", 9),
	HistoryCommentModelType10("评标审批历史", 10),
	HistoryCommentModelType11("定标审批历史", 11),
	HistoryCommentModelType12("启动采购计划", 12),
	HistoryCommentModelType13("流标", 13),
	HistoryCommentModelType14("供应商入围",14),
	HistoryCommentModelType15("一事一议(商务)",15),
	HistoryCommentModelType16("一事一议(评标)",16),
	HistoryCommentModelType17("一事一议(定标)",17),
	HistoryCommentModelType18("邀请函回复",18),
	HistoryCommentModelType19("发标信息",19),
	HistoryCommentModelType20("外网回标历史",20),
	HistoryCommentModelType21("外网二轮回标历史",21),
	HistoryCommentModelType22("外网商务谈判历史",22),
	HistoryCommentModelType23("外网评标约谈回复历史",23),
	HistoryCommentModelType24("外网定标历史",24),
	HistoryCommentModelType25("二轮发标历史",25),
	HistoryCommentModelType26("标书下载",26),
	HistoryCommentModelType27("二轮标书下载",27),
	HistoryCommentModelType28("年度总规划确认历史",28),
	HistoryCommentModelType29("发起定级审批",29),
	;

	private String desc;
	private int code;
	
	private HistoryCommentModelTypeEnum(String desc, int code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	public static String getNameByKey(int key){
		for(HistoryCommentModelTypeEnum i :HistoryCommentModelTypeEnum.values()){
			if(i.getCode()==key){
				return i.getDesc();
			}
		}
		return null;
	}

}
